/**
 * @file 权限管理
 * @author lishaohai
 */
import request from '@/utils/request';

// 系统管理 => 接口管理
export function getLogList(params) {
    return request({method: 'get', url: '/api/loglist/', params});
}
export function postLogList(data) {
    return request({method: 'post', url: '/api/loglist/', data});
}
// 批量添加列表
export function postLogsList(data) {
    return request({method: 'post', url: '/api/loglist/list/', data});
}
// 批量更新列表
export function putLogsList(data) {
    return request({method: 'put', url: '/api/loglist/', data});
}
// 单个更新列表
export function putLogList(id, data) {
    return request({method: 'put', url: `/api/loglist/${id}/`, data});
}
export function getLogById(id) {
    return request({method: 'get', url: `/api/loglist/${id}/`});
}
export function deleteLogById(id) {
    return request({method: 'delete', url: `/api/loglist/${id}/`});
}
export function deleteLogByIds(ids) {
    return request({method: 'delete', url: '/api/loglist/', data: ids});
}
